package com.ruoyi.service.impl;

import java.util.List;

import com.ruoyi.domain.BasisTaskPlanning;
import com.ruoyi.mapper.BasisTaskPlanningMapper;
import com.ruoyi.service.IBasisTaskPlanningService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 指挥员任务筹划Service业务层处理
 * 
 * @author wangzebing
 * @date 2025-07-12
 */
@Service
public class BasisTaskPlanningServiceImpl implements IBasisTaskPlanningService
{
    @Autowired
    private BasisTaskPlanningMapper basisTaskPlanningMapper;

    /**
     * 查询指挥员任务筹划
     *
     * @param loadingId 指挥员任务筹划主键
     * @return 指挥员任务筹划
     */
    @Override
    public BasisTaskPlanning selectBasisTaskPlanningByLoadingId(String loadingId)
    {
        return basisTaskPlanningMapper.selectBasisTaskPlanningByLoadingId(loadingId);
    }

    /**
     * 查询指挥员任务筹划列表
     * 
     * @param basisTaskPlanning 指挥员任务筹划
     * @return 指挥员任务筹划
     */
    @Override
    public List<BasisTaskPlanning> selectBasisTaskPlanningList(BasisTaskPlanning basisTaskPlanning)
    {
        return basisTaskPlanningMapper.selectBasisTaskPlanningList(basisTaskPlanning);
    }

    /**
     * 新增指挥员任务筹划
     * 
     * @param basisTaskPlanning 指挥员任务筹划
     * @return 结果
     */
    @Override
    public int insertBasisTaskPlanning(BasisTaskPlanning basisTaskPlanning)
    {
        return basisTaskPlanningMapper.insertBasisTaskPlanning(basisTaskPlanning);
    }

    /**
     * 修改指挥员任务筹划
     * 
     * @param basisTaskPlanning 指挥员任务筹划
     * @return 结果
     */
    @Override
    public int updateBasisTaskPlanning(BasisTaskPlanning basisTaskPlanning)
    {
        return basisTaskPlanningMapper.updateBasisTaskPlanning(basisTaskPlanning);
    }

    /**
     * 批量删除指挥员任务筹划
     * 
     * @param loadingIds 需要删除的指挥员任务筹划主键
     * @return 结果
     */
    @Override
    public int deleteBasisTaskPlanningByLoadingIds(String[] loadingIds)
    {
        return basisTaskPlanningMapper.deleteBasisTaskPlanningByLoadingIds(loadingIds);
    }

    /**
     * 删除指挥员任务筹划信息
     * 
     * @param loadingId 指挥员任务筹划主键
     * @return 结果
     */
    @Override
    public int deleteBasisTaskPlanningByLoadingId(String loadingId)
    {
        return basisTaskPlanningMapper.deleteBasisTaskPlanningByLoadingId(loadingId);
    }

    @Override
    public BasisTaskPlanning selectBasisTaskPlanningByLoadingIdAndUserId(String loadingId, Integer userId) {
        return basisTaskPlanningMapper.selectBasisTaskPlanningByLoadingIdAndUserId(loadingId, userId);
    }
    @Override
    public int qxGl1(String loadingId,String resourceId, Long userId){
        return basisTaskPlanningMapper.qxGl1( loadingId, resourceId,  userId);
    }
}
